//
//  MJAnswerView.h
//  MJ
//
//  Created by lina on 2017/12/11.
//  Copyright © 2017年 lina. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJButton.h"

typedef enum {
    MJAnswerViewStyleSingleChoice = 0,  //单选题
    MJAnswerViewStyleMultipleChoice,    //多选题
    MJAnswerViewStyleTrueOrFalse,       //判断题
} MJAnswerViewStyle;

@class MJAnswerView;

@protocol MJQuestionsAnswerViewDelegate <NSObject>

- (void)questionsAnswerView:(MJAnswerView *)questionsAnswerView didClickOptionButton:(MJButton *)button;

@end

@interface MJAnswerView : UIView

@property (nonatomic, weak) id<MJQuestionsAnswerViewDelegate> delegate;


//答案样式
@property (nonatomic, assign, readonly) MJAnswerViewStyle style;

//答案数组
@property (nonatomic, strong, readonly) NSArray *answerArray;

//选中答案
@property (nonatomic, copy, readonly) NSString *selectAnswer;

//选中答案角标
@property (nonatomic, copy, readonly) NSString *qrnum;

//刷新布局
- (void)reloadViewWithFrame:(CGRect)frame style:(MJAnswerViewStyle)style answerArray:(NSArray *)answerArray;


@end
